Optimal. Leaf size=17 \[ -\frac{a c \tan ^3(e+f x)}{3 f} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0710234, antiderivative size = 17, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 3, integrand size = 30, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.1, Rules used = {3962, 2607, 30} \[ -\frac{a c \tan ^3(e+f x)}{3 f} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3962
Rule 2607
Rule 30
Rubi steps
\begin{align*} \int \sec ^2(e+f x) (a+a \sec (e+f x)) (c-c \sec (e+f x)) \, dx &=-\left ((a c) \int \sec ^2(e+f x) \tan ^2(e+f x) \, dx\right )\\ &=-\frac{(a c) \operatorname{Subst}\left (\int x^2 \, dx,x,\tan (e+f x)\right )}{f}\\ &=-\frac{a c \tan ^3(e+f x)}{3 f}\\ \end{align*}
Mathematica [A] time = 0.0186051, size = 17, normalized size = 1. \[ -\frac{a c \tan ^3(e+f x)}{3 f} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.02, size = 36, normalized size = 2.1 \begin{align*}{\frac{1}{f} \left ( ac\tan \left ( fx+e \right ) +ac \left ( -{\frac{2}{3}}-{\frac{ \left ( \sec \left ( fx+e \right ) \right ) ^{2}}{3}} \right ) \tan \left ( fx+e \right ) \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] time = 0.97744, size = 49, normalized size = 2.88 \begin{align*} -\frac{{\left (\tan \left (f x + e\right )^{3} + 3 \, \tan \left (f x + e\right )\right )} a c - 3 \, a c \tan \left (f x + e\right )}{3 \, f} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 0.438633, size = 86, normalized size = 5.06 \begin{align*} \frac{{\left (a c \cos \left (f x + e\right )^{2} - a c\right )} \sin \left (f x + e\right )}{3 \, f \cos \left (f x + e\right )^{3}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 6.85426, size = 53, normalized size = 3.12 \begin{align*} \begin{cases} - \frac{a c \left (\frac{\tan ^{3}{\left (e + f x \right )}}{3} + \tan{\left (e + f x \right )}\right ) - a c \tan{\left (e + f x \right )}}{f} & \text{for}\: f \neq 0 \\x \left (a \sec{\left (e \right )} + a\right ) \left (- c \sec{\left (e \right )} + c\right ) \sec ^{2}{\left (e \right )} & \text{otherwise} \end{cases} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.26771, size = 22, normalized size = 1.29 \begin{align*} -\frac{a c \tan \left (f x + e\right )^{3}}{3 \, f} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]